package com.aizuda.boot.modules.business.contract.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author sangyirong
 * @ClassName FieldTreeDTO
 * @Version 1.0
 * @Date 2025/6/26 19:37
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "字段表单启用字段树")
public class FieldTreeDTO {

    private Integer moduleId;

    private String moduleName;

    private List<FieldTreeNode> fieldTreeNode;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Schema(description = "字段表单启用字段树节点")
    public static class FieldTreeNode {

        private Long fieldId;

        private String fieldName;

        private String code;

        private List<FieldTreeNode> children;
    }
}
